package com.hepinghospital.user.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.hepinghospital.user.R
import com.rest.response.CheckListData

/**
 * @Description: 检验检查项
 * @Author: lzp
 * @CreateDate: 2022/3/15 16:08
 * @UpdateRemark: 更新说明
 */
class CheckItemAdapter(data: ArrayList<CheckListData.CheckItem>) : BaseQuickAdapter<CheckListData.CheckItem, BaseViewHolder>(R.layout.item_check, data) {
    override fun convert(holder: BaseViewHolder, item: CheckListData.CheckItem) {

        holder.setText(R.id.tv_check_name, item.name)
        holder.setText(R.id.tv_check_num, item.count.toString())
        holder.setText(R.id.tv_check_price, item.expense.toString())
    }
}